package com.ruoyi.school.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 论文表
 * @TableName pac_journals_output
 */
@TableName(value ="pac_journals_output")
@Data
public class PacJournalsOutput implements Serializable {
    /**
     * 自增主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 成果标题
     */
    private String acTitle;

    /**
     * 成果类型ID
     */
    private Long resultTypeId;

    /**
     * 期刊名称
     */
    private String resultTypeName;

    /**
     * 成果文件路径
     */
    private String acFile;

    /**
     * 成果文件格式
     */
    private String acFileType;

    /**
     * 学生ID
     */
    private Long stuId;

    /**
     * 学生姓名
     */
    private String stuName;

    /**
     * 学号
     */
    private String stuNum;

    /**
     * 审核状态(1:未审核 2:通过 3:拒绝)
     */
    private Integer acAudit;

    /**
     * 展示状态(1:下墙 2:上墙)
     */
    private Integer acWall;

    /**
     * 指导老师（逗号分隔）
     */
    private String instructorTeacherId;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 指导老师id
     */
    @TableField(exist = false)
    private List<Long> teacherIds;

    /**
     * 团队成员
     */
    @TableField(exist = false)
    private List<Long> memberIds;

    /**
     * 开始时间
     */
    @TableField(exist = false)
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(exist = false)
    private Date endTime;

    @TableField(exist = false)
    private List<Long> ids;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PacJournalsOutput other = (PacJournalsOutput) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAcTitle() == null ? other.getAcTitle() == null : this.getAcTitle().equals(other.getAcTitle()))
            && (this.getResultTypeId() == null ? other.getResultTypeId() == null : this.getResultTypeId().equals(other.getResultTypeId()))
            && (this.getAcFile() == null ? other.getAcFile() == null : this.getAcFile().equals(other.getAcFile()))
            && (this.getAcFileType() == null ? other.getAcFileType() == null : this.getAcFileType().equals(other.getAcFileType()))
            && (this.getStuId() == null ? other.getStuId() == null : this.getStuId().equals(other.getStuId()))
            && (this.getStuName() == null ? other.getStuName() == null : this.getStuName().equals(other.getStuName()))
            && (this.getStuNum() == null ? other.getStuNum() == null : this.getStuNum().equals(other.getStuNum()))
            && (this.getAcAudit() == null ? other.getAcAudit() == null : this.getAcAudit().equals(other.getAcAudit()))
            && (this.getAcWall() == null ? other.getAcWall() == null : this.getAcWall().equals(other.getAcWall()))
            && (this.getInstructorTeacherId() == null ? other.getInstructorTeacherId() == null : this.getInstructorTeacherId().equals(other.getInstructorTeacherId()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAcTitle() == null) ? 0 : getAcTitle().hashCode());
        result = prime * result + ((getResultTypeId() == null) ? 0 : getResultTypeId().hashCode());
        result = prime * result + ((getAcFile() == null) ? 0 : getAcFile().hashCode());
        result = prime * result + ((getAcFileType() == null) ? 0 : getAcFileType().hashCode());
        result = prime * result + ((getStuId() == null) ? 0 : getStuId().hashCode());
        result = prime * result + ((getStuName() == null) ? 0 : getStuName().hashCode());
        result = prime * result + ((getStuNum() == null) ? 0 : getStuNum().hashCode());
        result = prime * result + ((getAcAudit() == null) ? 0 : getAcAudit().hashCode());
        result = prime * result + ((getAcWall() == null) ? 0 : getAcWall().hashCode());
        result = prime * result + ((getInstructorTeacherId() == null) ? 0 : getInstructorTeacherId().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", acTitle=").append(acTitle);
        sb.append(", resultTypeId=").append(resultTypeId);
        sb.append(", acFile=").append(acFile);
        sb.append(", acFileType=").append(acFileType);
        sb.append(", stuId=").append(stuId);
        sb.append(", stuName=").append(stuName);
        sb.append(", stuNum=").append(stuNum);
        sb.append(", acAudit=").append(acAudit);
        sb.append(", acWall=").append(acWall);
        sb.append(", instructorTeacherId=").append(instructorTeacherId);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}